package com.hmall.api.user;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 用户管理Feign客户端
 *
 * @author Zhy
 * @version 1.0
 * @date 2025-03-15 23:34
 */
@FeignClient("user-service")
public interface UserClient {
	@PutMapping("/inner/users/money/deduct")
	void deductMoney(
		@RequestParam("pw") String pw,
		@RequestParam("amount") Integer amount,
		@RequestParam("userId") Long userId
	);
}
